package com.lyf.scm.common.enums;

import java.util.ArrayList;
import java.util.List;

/**
 * 直营预测计划_销售计划准确率
 *
 * @author wangchlei
 * @date 2020/08/13
 */
public enum SalesPlanDirectlyAccuracyEnum {
    /**
     * 预测值
     */
    PREDICTED_QTY("predictedQty", "预测值"),
    /**
     * 计划值
     */
    PLAN_QTY("planQty", "计划值"),
    /**
     * 实际确认量
     */
    ACTUAL_CONFIRM_QTY("actualConfirmQty", "实际确认量"),
    /**
     * 实际销量
     */
    ACTUAL_SALES_QTY("actualSalesQty", "实际销量"),
    /**
     * 预测准确率
     */
    FORECAST_ACCURACY("forecastAccuracy", "预测准确率"),
    /**
     * 计划准确率
     */
    PLAN_ACCURACY("planAccuracy", "计划准确率");
    private String key;
    private String desc;

    SalesPlanDirectlyAccuracyEnum(String key, String desc) {
        this.key = key;
        this.desc = desc;
    }

    /**
     * 指标的枚举顺序为excel导出时候指标的顺序
     *
     * @param
     * @return {@link List<String>}
     **/
    public static List<String> getAllTargetsDesc() {
        List<String> targetsDesc = new ArrayList<>();
        for (SalesPlanDirectlyAccuracyEnum item : SalesPlanDirectlyAccuracyEnum.values()) {
            targetsDesc.add(item.getDesc());
        }
        return targetsDesc;
    }

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }
}
